const module1 = {
    state: {
        count: 1
    },
    getters: {
      getCount(state) {
        return state.count 
      }
    },
    mutations:{
      increment(state,val) {
        if(typeof val==='string'){
          val = new Number(val)
        }
        state.count=state.count + val
      }
    },
    actions:{
      add({commit},val){
        commit('increment',val)
      }
    }
  }

export default module1